package com.wm.web.controller.system;


import com.wm.common.core.domain.AjaxResult;
import com.wm.system.domain.TProvince;
import com.wm.system.service.ITProvinceService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 省份信息表 前端控制器
 * </p>
 *
 * @author hyq
 * @since 2023-10-23 11:14:43
 */
@RestController
@RequestMapping("/system/province")
public class TProvinceController {

    @Autowired
    private ITProvinceService service;

    @ApiOperation("省市区三级联动列表")
    @GetMapping("list")
    public AjaxResult list(){
        List<TProvince> list = service.selectProvinceList();
        return AjaxResult.success(list);
    }

}
